package org.boot.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class MyApplicationListener implements ApplicationListener<HelloApplicationEvent> {
    @Override
    public void onApplicationEvent(HelloApplicationEvent event) {
        System.out.println("MyApplicationListener->" + event.getParam());
    }
}
